<?php 
/**
 * 角色model类
 * @Author    紫梦
 * @DateTime  2017-11-18
 * @copyright 响响租车
 * @version   1.0
 */
namespace app\common\model;
use think\Model;

class Roles extends Model
{
	public function adminName()
	{
		return $this->hasMany('Admin','role_id','id');
	}

	public function rolesNode()
	{
		return $this->hasMany('RolesNode','role_id','id');
	}
	public function rolesMenu()
	{
		return $this->hasMany('RolesMenu','id','id');
	}
}